package com.wimcorp.magic.abilities.trigger;

import javax.persistence.Entity;

import com.wimcorp.magic.abilities.Ability;

@Entity
public class OnEnterBattlefield extends AbilityTrigger {

	public OnEnterBattlefield() {
	}

	public OnEnterBattlefield(Ability ability) {
		super(ability);
	}

	public OnEnterBattlefield(OnEnterBattlefield abilityTrigger) {
		super(abilityTrigger);
	}
	
	@Override
	public void register() {
		getAbility().getPlayer().cast(getAbility());
	}
	
	@Override
	public void unRegister() {
		
	}

	public OnEnterBattlefield clone() {
		return new OnEnterBattlefield(this);
	}
}
